package y23.Apr;

public class YunSuanFu {
    public static void main(String[] args) {
        int a=10;
        int b=20;
        int c=33;
        int d=10;
        System.out.println("逻辑运算符");
        System.out.println(a==b&&a==d);
        System.out.println(a!=b&&a==d);
        System.out.println(a==b||a==d);
        System.out.println(a!=b||a==d);
        System.out.println(!(a==b));
        System.out.println("位运算符");
        System.out.println(a&b);
        System.out.println(a|b);
        System.out.println(a^b);
        System.out.println(a&c);
        System.out.println(a|c);
        System.out.println(a^c);
        System.out.println(a&d);
        System.out.println(a|d);
        System.out.println(a^d);
        System.out.println("取反");
        System.out.println(~a);
        System.out.println(~b);
        System.out.println(~c);
    }
}
